import request from '@/utils/request'

// 查询一级商品流量来源数据日报列表
export function listBiProductFirstSource(query) {
  return request({
    url: '/marketing/BiProductFirstSource/list',
    method: 'get',
    params: query
  })
}

// 查询一级商品流量来源数据日报详细
export function getBiProductFirstSource(id) {
  return request({
    url: '/marketing/BiProductFirstSource/' + id,
    method: 'get'
  })
}

// 新增一级商品流量来源数据日报
export function addBiProductFirstSource(data) {
  return request({
    url: '/marketing/BiProductFirstSource',
    method: 'post',
    data: data
  })
}

// 修改一级商品流量来源数据日报
export function updateBiProductFirstSource(data) {
  return request({
    url: '/marketing/BiProductFirstSource',
    method: 'put',
    data: data
  })
}

// 删除一级商品流量来源数据日报
export function delBiProductFirstSource(id) {
  return request({
    url: '/marketing/BiProductFirstSource/' + id,
    method: 'delete'
  })
}
